/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.source.entity.floor;

import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.modules.sys.entity.User;

/**
 * 已登记楼层资源Entity
 * @author ZC
 * @version 2018-01-11
 */
@XmlRootElement(name = "registerfloorcfg")
public class EleSourceFloored extends DataEntity<EleSourceFloored> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 名称
	private String mode;		// mode
	private String fgcolor;		// 字体颜色
	private String bgcolor;		// bgcolor
	private String column;		// column
	private String columnWidth;		// column_width
	private String horizontalSpacing;		// column_width
	private String verticalSpacing;		// column_width
	private String align;		// align
	private String size;		// 字体大小
	public List<User> users = null;

	@XmlTransient
	public List<User> getUsers() {
		return users;
	}

	public void setUsers(List<User> users) {
		this.users = users;
	}
	public EleSourceFloored() {
		super();
	}

	public EleSourceFloored(String id){
		super(id);
	}
	@XmlTransient
	@Length(min=0, max=50, message="名称长度必须介于 0 和 50 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	@XmlTransient
	@Length(min=0, max=255, message="mode长度必须介于 0 和 255 之间")
	public String getMode() {
		return mode;
	}

	public void setMode(String mode) {
		this.mode = mode;
	}
	@XmlElement(name = "fgcolor")  
	@Length(min=0, max=100, message="字体颜色长度必须介于 0 和 100 之间")
	public String getFgcolor() {
		return fgcolor;
	}

	public void setFgcolor(String fgcolor) {
		this.fgcolor = fgcolor;
	}
	
	@XmlElement(name = "bgcolor")  
	@Length(min=0, max=100, message="bgcolor长度必须介于 0 和 100 之间")
	public String getBgcolor() {
		return bgcolor;
	}

	public void setBgcolor(String bgcolor) {
		this.bgcolor = bgcolor;
	}
	@XmlElement(name="column")
	@Length(min=0, max=100, message="column长度必须介于 0 和 100 之间")
	public String getColumn() {
		return column;
	}

	public void setColumn(String column) {
		this.column = column;
	}
	@XmlElement(name="column_width")
	@Length(min=0, max=100, message="column_width长度必须介于 0 和 100 之间")
	public String getColumnWidth() {
		return columnWidth;
	}

	public void setColumnWidth(String columnWidth) {
		this.columnWidth = columnWidth;
	}
	@XmlElement(name = "alignment")  
	@Length(min=0, max=100, message="align长度必须介于 0 和 100 之间")
	public String getAlign() {
		return align;
	}

	public void setAlign(String align) {
		this.align = align;
	}
	@XmlElement(name = "size")  
	@Length(min=0, max=11, message="字体大小长度必须介于 0 和 11 之间")
	public String getSize() {
		return size;
	}

	public void setSize(String size) {
		this.size = size;
	}
	@XmlElement(name = "horizontal_spacing")  
	@Length(min=0, max=100, message="horizontal_spacing长度必须介于 0 和 100 之间")
	public String getHorizontalSpacing() {
		return horizontalSpacing;
	}

	public void setHorizontalSpacing(String horizontalSpacing) {
		this.horizontalSpacing = horizontalSpacing;
	}
	@XmlElement(name = "vertical_spacing")  
	@Length(min=0, max=100, message="vertical_spacing长度必须介于 0 和 100 之间")
	public String getVerticalSpacing() {
		return verticalSpacing;
	}

	public void setVerticalSpacing(String verticalSpacing) {
		this.verticalSpacing = verticalSpacing;
	}
	
}